import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/qsg/devicemeal/list",
    method: "get",
    params: params,
  });
}
export function getmeituandeal(params) {
  return request({
    url: "/qsg/devicemeal/getmeituandeal",
    method: "get",
    params: params,
  });
}
export function listByDevice(params) {
  return request({
    url: "/qsg/devicemeal/listByDevice",
    method: "get",
    params: params,
  });
}

export function createDevicemeal(data) {
  return request({
    url: "/qsg/devicemeal/create",
    method: "post",
    data: data,
  });
}

export function deleteDevicemeal(id) {
  return request({
    url: "/qsg/devicemeal/delete/" + id,
    method: "get",
  });
}

export function getDevicemeal(id) {
  return request({
    url: "/qsg/devicemeal/" + id,
    method: "get",
  });
}

export function updateDevicemeal(id, data) {
  return request({
    url: "/qsg/devicemeal/update/" + id,
    method: "post",
    data: data,
  });
}
